<!DOCTYPE html>
<html>
<head>
    <title>客户信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <!-- 指定以IE8的方式来渲染 -->
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8"/>
    <link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="/css/jsherp.css"/>
    <link rel="stylesheet" type="text/css" href="/js/easyui/themes/gray/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="/js/easyui/themes/icon.css"/>
    <link type="text/css" rel="stylesheet" href="/css/common.css"/>
    <script type="text/javascript" src="/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="/js/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="/js/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="/js/common/common.js"></script>
    <script src="/js/pages/manage/supplier.js"></script>
</head>
<body>
<!-- 数据显示table -->
<div id="tablePanel" class="easyui-panel" data-options="fit:true"  style="padding:5px;" title="客户信息列表" iconCls="icon-list">
    <div class="box-body form-inline">
        <div class="form-group">
            <label class="control-label">名称：</label>
            <div class="control-inline">
                <input type="text" id="searchSupplier" name="searchSupplier" value="" maxlength="100" class="easyui-textbox width-90"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label">手机号码：</label>
            <div class="control-inline">
                <input type="text" id="searchTelephone" name="searchTelephone" value="" maxlength="100" class="easyui-textbox width-90"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label">联系电话：</label>
            <div class="control-inline">
                <input type="text" id="searchPhonenum" name="searchPhonenum" value="" maxlength="100" class="easyui-textbox width-90"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label">备注：</label>
            <div class="control-inline">
                <input type="text" id="searchDesc" name="searchDesc" value="" maxlength="100" class="easyui-textbox width-90"/>
            </div>
        </div>
        <div class="form-group">
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-search" id="searchBtn">查询</a>&nbsp;
            <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-redo" id="searchResetBtn">重置</a>
        </div>
    </div>
    <table id="tableData" style="top:300px;border-bottom-color:#FFFFFF"></table>
</div>
<div id="supplierDlg" class="easyui-dialog" style="padding:10px 40px" fit="true"
     closed="true" buttons="#dlg-buttons" modal="true" collapsible="false" closable="true">
    <form id="supplierFM">
        <table width="740px">
            <tr>
                <td style="width: 120px;height: 20px">名称</td>
                <td style="width: 250px;padding:5px">
                    <input name="supplier" id="supplier" class="easyui-textbox"
                           data-options="required:true,validType:'length[2,30]'" style="width: 160px;"/>
                </td>
                <td style="width: 120px;height: 20px">联系人</td>
                <td style="width:250px;padding:5px;">
                    <input name="contacts" id="contacts" class="easyui-textbox" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>手机号码</td>
                <td style="padding:5px;">
                    <input name="telephone" id="telephone" class="easyui-textbox" style="width: 160px;"/>
                </td>
                <td>电子邮箱</td>
                <td style="padding:5px">
                    <input name="email" id="email" class="easyui-textbox" validType="email" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>联系电话</td>
                <td style="padding:5px;">
                    <input name="phonenum" id="phonenum" class="easyui-textbox" style="width: 160px;"/>
                </td>
                <td>传真</td>
                <td style="padding:5px">
                    <input name="fax" id="fax" class="easyui-textbox" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>期初应收</td>
                <td style="padding:5px">
                    <input name="BeginNeedGet" id="BeginNeedGet" type="text" class="easyui-numberbox"
                           data-options="min:0,precision:2" style="width: 160px;"/>
                </td>
                <td>期初应付</td>
                <td style="padding:5px">
                    <input name="BeginNeedPay" id="BeginNeedPay" type="text" class="easyui-numberbox"
                           data-options="min:0,precision:2" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>期末应收</td>
                <td style="padding:5px">
                    <input name="AllNeedGet" id="AllNeedGet" type="text" class="easyui-textbox" style="width: 160px;"
                           readonly="readonly"/>
                </td>
                <td>期末应付</td>
                <td style="padding:5px">
                    <input name="AllNeedPay" id="AllNeedPay" type="text" class="easyui-textbox" style="width: 160px;"
                           readonly="readonly"/>
                </td>
            </tr>
            <tr>
                <td>纳税人识别号</td>
                <td style="padding:5px">
                    <input name="taxNum" id="taxNum" class="easyui-textbox" style="width: 160px;"/>
                </td>
                <td>税率(%)</td>
                <td style="padding:5px">
                    <input name="taxRate" id="taxRate" class="easyui-numberbox" data-options="validType:'length[1,2]'" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>开户行</td>
                <td style="padding:5px">
                    <input name="bankName" id="bankName" class="easyui-textbox" style="width: 160px;"/>
                </td>
                <td>账号</td>
                <td style="padding:5px">
                    <input name="accountNumber" id="accountNumber" class="easyui-textbox" style="width: 160px;"/>
                </td>
            </tr>
            <tr>
                <td>地址</td>
                <td style="padding:5px" colspan="3">
                    <input name="address" id="address" class="easyui-textbox" style="width: 530px;"/>
                </td>
            </tr>
            <tr>
                <td>备注</td>
                <td style="padding:5px" colspan="3">
                    <input name="description" id="description" class="easyui-textbox" data-options="multiline:true" style="width: 530px;height: 40px;"/>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="dlg-buttons">
    <a href="javascript:void(0)" id="saveSupplier" class="easyui-linkbutton" iconCls="icon-ok">保存</a>
    <a href="javascript:void(0)" id="cancelSupplier" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#supplierDlg').dialog('close')">取消</a>
</div>

<!-- 导入excel表格 -->
<div id="importExcelDlg" style="padding:10px 20px" buttons="#dlg-buttons5">
    <form id="importExcelFM" method="post" enctype="multipart/form-data"
          action="/supplier/importExcelCustomer">
        <table>
            <tr>
                <td style="width:80px;">文件名称</td>
                <td style="padding:5px">
                    <input name="supplierFile" id="supplierFile" type="file" style="width: 230px;"/>
                </td>
            </tr>
            <tr>
                <td>导入注意</td>
                <td style="padding:5px">
                    <span>预收款、期初应收、期初应付、税率均为数值且要大于0；另外期初应收、期初应付不能同时输入</span>
                </td>
            </tr>
        </table>
    </form>
</div>
<div id="dlg-buttons5">
    <a href="javascript:void(0)" id="saveimport" class="easyui-linkbutton" iconCls="icon-ok">导入</a>
    <a href="javascript:void(0)" id="cancelimport" class="easyui-linkbutton" iconCls="icon-cancel"
       onclick="javascript:$('#importExcelDlg').dialog('close')">取消</a>
</div>
</body>
</html>